package cn.tedu._08weibo.pojo.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @author tune_the last
 * @date 2025/11/17 - 18:43
 */
@Data
public class UserRegParam {
    @Pattern(regexp = "^(?!.*(.)\\1{2})[^\\s]{4,12}$", message = "用户名不符合要求，请输入的用户名长度为4-12位，且不允许连续出现3个及以上相同字符")
    private String username;
    private String password;
    private String nickname;
}
